package com.nnnu.wsnackshop.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 订单配送DTO
 */
@Data
public class DeliveryDTO {

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID不能为空")
    private Integer orderId;

    /**
     * 骑手ID
     */
    private Integer riderId;

    /**
     * 配送方式：local=同城配送, self=自提
     */
    @NotBlank(message = "配送方式不能为空")
    private String deliveryType;
}